import * as TYPES from "../actionType.js"
let initState = {
    data:[]
}
function Homedata(state = initState, action) {
    state = JSON.parse(JSON.stringify(state))
    switch (action.type) {
        case TYPES.HOME_DATA:
            state.data=action.payload
            console.log(state.data)
            break;
    }
    return state
}
export default Homedata